package trading.algo.APIConnectivityTask;

import java.util.TimerTask;

import trading.bo.IBAccessorBO;

public class IBConnectionTask extends TimerTask {
    
    private IBAccessorBO ibAccessorBO;
    
    public IBConnectionTask(IBAccessorBO ibAccessorBO) {
        this.ibAccessorBO = ibAccessorBO;
    }

    @Override
    public void run() {
        // Connect to API server
        this.ibAccessorBO.connect();
        
    }
    
    public static int secondsNeeded() {
        return 1;
    }

}
